#!/bin/sh

if [ $# = 0 ];then
    for file in *
    do
        echo $file
    done
elif [ $# = 1 ];then
    cd $1
    for file in *
    do
        echo $file
    done
#    for file in $1*
#    do
#        echo ${file#$1}
#    done
fi
